package com.itheima.a08oopextendsdemo8;

public class Student2 extends Person {
    public Student2() {
        //子类构造方法中隐藏的super去访问父类的无参构造
        super();
        System.out.println("子类的无参构造");
    }

    public Student2(String name, int age) {
        super(name, age);
    }
}
